* {
    padding: 0;
    margin: 0;
}

body {
    height: 100vh;
    background: #000;
}

.box {
    width: 800px;
    height: 100%;
    margin: 0 auto;
    position: relative;
}

/* 充电百分比 */
.number {
    width: 200px;
    height: 200px;
    color: #fff;
    line-height: 200px;
    font-size: 30px;
    text-align: center;
    position: absolute;
    left: 50%;
    top: 26%;
    z-index: 1;
    margin-left: -100px;
}

.contrast {
    width: 100%;
    height: 100%;
    background: #000;
    position: relative;
    /* contrast 对比度 */
    filter: contrast(15);
    animation: hueRotate 5s linear infinite;
}
/* 颜色变化效果 */
@keyframes hueRotate {
    0%{
        /* contrast 对比度 */
        /* hue-rotate 色相旋转; 通过角度值设置色相值*/
        filter: contrast(15) hue-rotate(0);
    }
    100%{
        filter: contrast(15) hue-rotate(360deg);
    }
}

/* 顶部的充电球 */
.circle {
    width: 300px;
    height: 300px;
    position: absolute;
    top: 20%;
    left: 50%;
    margin-left: -150px;
    /* blur模糊度 */
    /* **设置模糊程度可以和contrast产生粘性效果** */
    filter: blur(8px);
    animation: circleRotate 5s linear infinite;
}
/* 旋转效果 */
@keyframes circleRotate {
    0%{
        transform: rotate(0);
    }
    0%{
        transform: rotate(360deg);
    }
}
.circle::before {
    content: '';
    width: 200px;
    height: 200px;
    background-color: cyan;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 42% 38% 63% 49%/45%;
}
.circle::after {
    content: '';
    width: 178px;
    height: 178px;
    background: #000;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

/* 底部的冒泡底座 */
.bubble-home {
    width: 100px;
    height: 40px;
    background-color: cyan;
    border-radius: 100px 100px 0 0;
    position: absolute;
    left: 50%;
    bottom: 0;
    margin-left: -50px;
    filter: blur(8px);
}

/* 漂浮上去的冒泡小球 */
.bubble {
    width: 20px;
    height: 20px;
    background: cyan;
    border-radius: 100%;
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%);
    z-index: 2;
    filter: blur(5px);
    animation: bubbleUp 5s ease-in-out infinite;
}
/* 漂浮上去的效果 */
@keyframes bubbleUp {
    0%{
        bottom: 0;
    }
    100% {
        bottom: calc(80% - 260px);
    }
}
/* 不同冒泡小球不同样式 */
.bubble:nth-child(1) {
    width: 20px;
    height: 20px;
    left: 50%;
    animation-duration: 5s;
    animation-delay: 1s;
}
.bubble:nth-child(2) {
    width: 26px;
    height: 26px;
    left: 46%;
    animation-duration: 4s;
    animation-delay: 2s;
}
.bubble:nth-child(3) {
    width: 18px;
    height: 18px;
    left: 54%;
    animation-duration: 3s;
    animation-delay: 2s;
}
.bubble:nth-child(4) {
    width: 22px;
    height: 22px;
    left: 52%;
    animation-duration: 5s;
    animation-delay: 4s;
}
.bubble:nth-child(5) {
    width: 24px;
    height: 24px;
    left: 48%;
    animation-duration: 4s;
    animation-delay: 4s;
}